Skip to content

test(source/cloudsqlpg): create MCP integration tests#2994

Open
anubhav756 wants to merge 16 commits intoanubhav-mcp-alloydbpgfrom
anubhav-mcp-cloudsqlpg
Open

test(source/cloudsqlpg): create MCP integration tests#2994
anubhav756 wants to merge 16 commits intoanubhav-mcp-alloydbpgfrom
anubhav-mcp-cloudsqlpg

Conversation

@anubhav756
Copy link
Copy Markdown
Contributor

This PR adds the mapped integration tests for CloudSQL PG tools using the native MCP harness.

@anubhav756 anubhav756 self-assigned this Apr 8, 2026
@anubhav756 anubhav756 requested review from a team as code owners April 8, 2026 12:33
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds integration tests for the Cloud SQL Postgres data source, including tests for listing and calling tools. The review identifies several improvement opportunities: refactoring the connection pool setup to eliminate code duplication and use production logic, enhancing environment variable validation to report all missing variables simultaneously, and renaming validation functions to better reflect their purpose while ensuring consistent application across test cases.

@anubhav756 anubhav756 force-pushed the anubhav-mcp-alloydbpg branch from 75f859a to c4a9912 Compare April 8, 2026 13:08
@anubhav756 anubhav756 requested a review from a team as a code owner April 8, 2026 13:08
@anubhav756 anubhav756 force-pushed the anubhav-mcp-cloudsqlpg branch from 59c2b6a to 2be51dc Compare April 8, 2026 13:09
@anubhav756 anubhav756 force-pushed the anubhav-mcp-alloydbpg branch 2 times, most recently from 5849570 to 274ee95 Compare April 8, 2026 14:20
@anubhav756 anubhav756 force-pushed the anubhav-mcp-cloudsqlpg branch from 2be51dc to 5561185 Compare April 8, 2026 14:22
@anubhav756 anubhav756 force-pushed the anubhav-mcp-alloydbpg branch 2 times, most recently from 4323012 to 4b94c00 Compare April 8, 2026 15:37
@anubhav756 anubhav756 force-pushed the anubhav-mcp-cloudsqlpg branch 3 times, most recently from e120bc5 to e74fd80 Compare April 8, 2026 16:27
@anubhav756 anubhav756 force-pushed the anubhav-mcp-alloydbpg branch from 4b94c00 to 2f96090 Compare April 8, 2026 18:26
@anubhav756 anubhav756 force-pushed the anubhav-mcp-cloudsqlpg branch 2 times, most recently from 7011296 to 29a4b31 Compare April 8, 2026 19:14
@anubhav756 anubhav756 force-pushed the anubhav-mcp-alloydbpg branch from 7b71b7d to 9a3ebe7 Compare April 8, 2026 19:33
@anubhav756 anubhav756 force-pushed the anubhav-mcp-cloudsqlpg branch 4 times, most recently from aa1537c to 9534b6d Compare April 9, 2026 08:49
@anubhav756 anubhav756 force-pushed the anubhav-mcp-alloydbpg branch from f30ecae to 3fe7c26 Compare April 9, 2026 08:53
@anubhav756 anubhav756 force-pushed the anubhav-mcp-cloudsqlpg branch from 9534b6d to 7e2f851 Compare April 9, 2026 09:07
@anubhav756 anubhav756 force-pushed the anubhav-mcp-alloydbpg branch from 3fe7c26 to e9fbe85 Compare April 9, 2026 09:31
@anubhav756 anubhav756 force-pushed the anubhav-mcp-cloudsqlpg branch from 7e2f851 to e327a2c Compare April 9, 2026 09:31
@anubhav756 anubhav756 force-pushed the anubhav-mcp-cloudsqlpg branch 3 times, most recently from aad6cd9 to 9ecd5c2 Compare April 9, 2026 20:53
@anubhav756 anubhav756 force-pushed the anubhav-mcp-alloydbpg branch from 7515be5 to b92c4a2 Compare April 9, 2026 21:17
@anubhav756 anubhav756 force-pushed the anubhav-mcp-cloudsqlpg branch from 9ecd5c2 to cf13215 Compare April 9, 2026 21:27
@anubhav756 anubhav756 force-pushed the anubhav-mcp-alloydbpg branch from b92c4a2 to 05e1161 Compare April 11, 2026 12:51
@anubhav756 anubhav756 force-pushed the anubhav-mcp-cloudsqlpg branch from cf13215 to 63b7b9e Compare April 11, 2026 12:51
@anubhav756 anubhav756 force-pushed the anubhav-mcp-alloydbpg branch 6 times, most recently from 7bb67bb to 1189409 Compare April 12, 2026 16:02
@anubhav756 anubhav756 force-pushed the anubhav-mcp-cloudsqlpg branch from 63b7b9e to 85a2173 Compare April 13, 2026 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant